537572f1ed11f2d9e9f9e4c5294c867ca8f8c797,maven-eclipse-plugin/src/main/java/org/apache/maven/plugin/eclipse/EclipsePlugin.java,EclipsePlugin,extractResourceDirs,#Set#List#File#File#boolean#String#,1502
Before Change
if ( resource.getExcludes().size() != 0 )
{
excludePattern = StringUtils.join( resource.getExcludes().iterator(), "|" );
}
// TODO: figure out how to merge if the same dir is specified twice
After Change
String includePattern = StringUtils.join( resource.getIncludes().iterator(), "|" );
List excludes = new ArrayList( resource.getExcludes() );
// automatically exclude java files: eclipse doesn't have the concept of resource directory so it will
// try to compile any java file found in maven resource dirs
excludes.add( JAVA_FILE_PATTERN );